import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;
/**
 * Utente dell'applicativo MiviaMovieServer.
 * Contiene l'elenco dei generi cinematografici preferiti.
 *
 */
@XmlRootElement
public class User {
	private String id;
	private List<MovieType> movieTypes;
	
	public User(){
		id = "";
		movieTypes = new ArrayList<MovieType>();
	}

	public User(String id, List<MovieType> movieTypes) {
		super();
		this.id = id;
		this.movieTypes = movieTypes;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<MovieType> getMovieTypes() {
		return movieTypes;
	}

	public void setMovieTypes(List<MovieType> movieTypes) {
		this.movieTypes = movieTypes;
	}

	public String toString(){
		return "UserID: "+getId() + "\nRegistered genres:\n" + getMovieTypes().toString();
	}
}
